package hw04.grammar.terminals;

import hw04.grammar.Executable;
import hw04.grammar.Terminal;

public class EvalMode extends Terminal implements Executable {
	
	public static final String NAIVE = "naive";
	public static final String SEMINAIVE = "seminaive";
	public static String mode = NAIVE;
	
	public EvalMode(String value) {
		super(value);
	}

	@Override
	public void execute() {
		if(getMatch().contains("seminaive")) {
			mode = SEMINAIVE;
		} else {
			mode = NAIVE;
		}
	}
	
}